Component({
    properties: {
      hotList: {
        type: Array,
        value: [],
        observer(val) {
          console.log(val)
          this.setData({
            hotListData: val
          })
        }
      }
    },
    data: {
      hotListData: []
    },
    lifetimes: {
      attached() { }
    },
    methods: {
      // 跳转webview打开外部网页url
      btnClickHandle(e) {
        wx.navigateTo({
          url: `/pages/commonWebview/commonWebview?title=${e.currentTarget.dataset.title}&url=${encodeURIComponent(e.currentTarget.dataset.link)}`
        })
      },
    }
  })